<!--# layout("/common/layout.html",{"jsBase":"/js/cms/xxdItem/"}){ -->

<form class="layui-form layui-form-pane" id="addForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">商品标题</label>
				<div class="layui-input-inline">
					<input type="text" name="title" class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">商品卖点</label>
				<div class="layui-input-inline">
					<input type="text" name="sellPoint" class="layui-input" >
				</div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">商品价格</label>
				<div class="layui-input-inline">
					<input type="text" name="price" class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">库存数量</label>
				<div class="layui-input-inline">
					<input type="text" name="num" class="layui-input" >
				</div>
            </div>
        </div>
    </div>


    <div class="layui-row">
        <div class="layui-form-item">

            <div class="layui-inline">
                <label class="layui-form-label" title="类目">类目</label>
                <div class="layui-input-inline">
                    <layui:simpleDictSelect style='layui-input-inline' type="item_cat" layVerify=""
                                            id="cid" name="cid" value="" />
                </div>
            </div>

            <input id="image" type="hidden" name="image" class="layui-input" value="">

        </div>
    </div>
    <layui:submitButtons id="addButton" />
</form>

    <blockquote class="site-text layui-elem-quote">上传图片</blockquote>

    <div class="layui-row">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-form-item my-item-style">
                    <div class="layui-inline my-liline-style">
                        <layui:fastdfsUploadImg id="itemPic" value="" btnName="点击上传" addr="${ctxPath}"/>
                    </div>
                </div>
            </div>
        </div>

<!--#} -->
<script>
layui.use(['add'], function(){
    var xxdItemAdd = layui.add
    xxdItemAdd.init();
});
</script>
